Out of these sections of the API, this sample uses only calls from the session management section. 对于这些API内容,本样例只使用了来自会话管理部分的调用。
This sample project consists of an entity bean, a session bean, a sample servlet, and a sample client. 这个样本工程由一个实体bean、一个会话bean、一个样本servlet和一个样本客户机组成。
In the sample application, the get method for pbValue simply keeps a counter in the session and increments it every time the get method is called. 在这个样本应用软件中,pbValue的获取程序仅仅在这个部分保存着一个计数器,并在获取程序调用时计数会增加。
The sample message flow discussed below acts as the client, which means that it is responsible for sending a "Session Open" message to initiate the session. 下面将要讨论的样例消息流充当客户端,意味着它将负责发送“SessionOpen”消息以发起会话。
The sample session bean is a stateless session bean and has two bean methods. 样本会话bean是一个无状态会话bean,它有两个bean方法。
Within the sample application, a POJO ( plain old Java object) construct and a POJO RPC Adapter service are used to access methods on an EJB2. x session bean. 在这个样例应用程序中,POJO(简单而陈旧的Java对象)构成和POJORPCAdapter服务可以用来访问EJB2sessionbean上的方法。
Now I would run the sample program by attaching it to a dbx session. 现在,通过把示例程序连接到dbx会话来运行它。
The sample application stores the DiscoveryInformation object in a session because it will be needed later, as you will see. 示例应用程序存储一个session中的DiscoveryInformation对象,因为稍后会用到该对象。
We classify the sample data to do some analysis. The first kind is based on all the time about the sample data. And the second is to select a drop period in session data, the third kind is to select a rise time of the data. 首先对样本数据进行分类分析,第一类是依据样本的全部数据,第二类是选取一个下降时段的数据,第三类是选取一个上升时段的数据。